import request from '@/utils/request'

export function addDeptApi(params) {
  return request.post('/system/dept/addDept', params)
}

export function getTreeDeptApi(params) {
  return request.get('/system/dept/getTreeDept', params)
}

export function modifyDeptApi(params) {
  return request.put('/system/dept/modifyDept', params)
}

export function getDeptListApi(params) {
  return request.get('/system/dept/getDeptList', { params })
}

export function deleteDeptApi(params) {
  return request.delete('/system/dept/deleteDept', { params })
}
